package Thread.Test.Test1;

public class ThreadTest {
    public static void main(String[] args) {
        //一共有1000张电影票,可以在两个窗口领取,假设每次领取时间为3000毫秒
        //使用多线程模拟卖票过程
        RunThread rt =new RunThread();
        Thread t1 =new Thread(rt,"窗口1");
        Thread t2 =new Thread(rt,"窗口2");

        t1.start();
        t2.start();
    }
}
